FROM python:3.6.1


RUN mkdir -p /workspace/app
COPY ./ /workspace/app/
COPY ./deploy/ /workspace/app/
WORKDIR /workspace/app/
RUN pip install -i https://pypi.douban.com/simple --no-cache-dir -r requirements.txt 
RUN pip install -i https://pypi.douban.com/simple gunicorn


EXPOSE 8081

CMD ["gunicorn", "--config", "./deploy/gunicorn_config.py", "run:flask_app"]